package de.fhaugsburg.games.boardgames.connect4;

import de.fhaugsburg.games.boardgames.Board;

public class Connect4Board extends Board {
	private int rowCounter;
	
	public Connect4Board(int rows, int columns) {
		super(rows, columns);
		rowCounter = height - 1;
	}
	public void putPiece(Piece piece, int column) {
		    rowCounter = height - 1;
			while(squares[rowCounter][column].isEmpty() == false){
				rowCounter--;
			}
			squares[rowCounter][column].put(piece);
	}
	public int getRowCounter(){
		return rowCounter;
	}

}
